<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>

<body>
{[foreach item=aa from=$list]} 
{[$aa.title]}
<table border="1" cellpadding="2" cellspacing="1" style="border-collapse: collapse" bordercolor="#111111">
	<tr align="center">
		<th>序号</th>
		<th>流水号</th>
		<th>银行</th>
		<th>帐户</th>
		<th>名称</th>
		<th>币种</th>
		<th>金额</th>
		
		<th>开始日期</th>
		<th>结束日期</th>
		<th>期限(天)</th>
		<th>剩余(天)</th>
		<th>年收益率</th>
		<th>每天收益</th>
		<th>预计收益</th>				
		<th>当前收益</th>
		
		<th>录入员</th>
		<th>状态</th>
		<th>创建时间</th>
		<th>更新时间</th>
	</tr>
	{[assign var="t1" value="0"]}
	{[assign var="t2" value="0"]}
	{[assign var="t4" value="0"]}
	{[assign var="b1" value="0"]}
	{[foreach name=outer key=key item=item from=$aa.data]}
	{[assign var="no" value="`$key+1`"]}
	{[assign var="t1" value="`$t1+$item.amount`"]}
	{[assign var="t2" value="`$t2+$item.bonus`"]}
	{[assign var="t4" value="`$t4+$item.t4`"]}
	{[assign var="b1" value="`$b1+$item.b1`"]}
	<tr align="center">
		<td>{[$no]}</td>
		<td>{[$item.id]}</td>
		<td>{[$item.bank_t]}</td>
		<td>{[$item.account_t]}</td>
		<td>{[$item.name|truncate:21:"...":true]}</td>
		<td>{[$item.currency_t]}</a></td>
		<td>{[$item.amount|money]}</a></td>
				
		<td>{[$item.t1]}</td>
		<td>{[$item.t2]}</td>
		<td>{[$item.day]}</td>
		<td>{[$item.t3]}</td>
		<td>{[$item.yield]}</td>
		<td>{[$item.b1]}</td>
		<td>{[$item.bonus]}</td>		
		<td>{[$item.t4]}</td>
		
		<td>{[$item.oper_t]}</td>		
		<td>{[$item.status_t]}</td>
		<td>{[$item.createtime]}</td>
		<td>{[$item.modifytime]}</td>
	</tr>
	{[/foreach]}
	<tr align="center">
		<td colspan="6"></td>
		<td>{[$t1|money]}</td>
		<td colspan="5"></td>
		<td>{[$b1|money]}</td>
		<td>{[$t2|money]}</td>
		<td>{[$t4|money]}</td>		
		<td colspan="4"></td>
	</tr>
</table>
{[/foreach]}

{[foreach item=aa from=$result]} 
{[$aa.title]}
<table border="1" cellpadding="2" cellspacing="1" style="border-collapse: collapse" bordercolor="#111111">
	<tr align="center">
		<th>序号</th>
		<th>帐号</th>
		<th>数据</th>
		<th>百分比</th>
	</tr>
	{[foreach name=outer key=key item=item from=$aa.data]} 
	{[assign var="no" value="`$key+1`"]}
	<tr align="center">
		<td>{[$no]}</td>
		<td>{[$item.a]}</td>
		<td>{[$item.c|money]}</td>
		<td>{[$item.p]}</td>
	</tr>
	{[/foreach]}
	<tr align="center">
		<td></td>
		<td>总数</td>
		<td>{[$aa.total|money]}</td>
		<td></td>
	</tr>
</table>
<br />
{[/foreach]}

{[include file="_tj.tpl"]}
</body>
</html>